/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.Company_Contact_PersonServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.Company_Contact_PersonServiceSoap
 * @generated
 */
public class Company_Contact_PersonSoap implements Serializable {
	public static Company_Contact_PersonSoap toSoapModel(
		Company_Contact_Person model) {
		Company_Contact_PersonSoap soapModel = new Company_Contact_PersonSoap();

		soapModel.setApplicationId(model.getApplicationId());
		soapModel.setUserId(model.getUserId());
		soapModel.setDesignation(model.getDesignation());
		soapModel.setTitle(model.getTitle());
		soapModel.setLastName(model.getLastName());
		soapModel.setFirstName(model.getFirstName());
		soapModel.setMiddleName(model.getMiddleName());
		soapModel.setPhoneHome(model.getPhoneHome());
		soapModel.setPhoneOffice(model.getPhoneOffice());
		soapModel.setPhoneMobile(model.getPhoneMobile());
		soapModel.setFax(model.getFax());
		soapModel.setEmailAddress(model.getEmailAddress());
		soapModel.setIdentificationDoc(model.getIdentificationDoc());
		soapModel.setIdentificationDocNo(model.getIdentificationDocNo());

		return soapModel;
	}

	public static Company_Contact_PersonSoap[] toSoapModels(
		Company_Contact_Person[] models) {
		Company_Contact_PersonSoap[] soapModels = new Company_Contact_PersonSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Company_Contact_PersonSoap[][] toSoapModels(
		Company_Contact_Person[][] models) {
		Company_Contact_PersonSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Company_Contact_PersonSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Company_Contact_PersonSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Company_Contact_PersonSoap[] toSoapModels(
		List<Company_Contact_Person> models) {
		List<Company_Contact_PersonSoap> soapModels = new ArrayList<Company_Contact_PersonSoap>(models.size());

		for (Company_Contact_Person model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Company_Contact_PersonSoap[soapModels.size()]);
	}

	public Company_Contact_PersonSoap() {
	}

	public String getPrimaryKey() {
		return _applicationId;
	}

	public void setPrimaryKey(String pk) {
		setApplicationId(pk);
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getDesignation() {
		return _designation;
	}

	public void setDesignation(String designation) {
		_designation = designation;
	}

	public String getTitle() {
		return _title;
	}

	public void setTitle(String title) {
		_title = title;
	}

	public String getLastName() {
		return _lastName;
	}

	public void setLastName(String lastName) {
		_lastName = lastName;
	}

	public String getFirstName() {
		return _firstName;
	}

	public void setFirstName(String firstName) {
		_firstName = firstName;
	}

	public String getMiddleName() {
		return _middleName;
	}

	public void setMiddleName(String middleName) {
		_middleName = middleName;
	}

	public String getPhoneHome() {
		return _phoneHome;
	}

	public void setPhoneHome(String phoneHome) {
		_phoneHome = phoneHome;
	}

	public String getPhoneOffice() {
		return _phoneOffice;
	}

	public void setPhoneOffice(String phoneOffice) {
		_phoneOffice = phoneOffice;
	}

	public String getPhoneMobile() {
		return _phoneMobile;
	}

	public void setPhoneMobile(String phoneMobile) {
		_phoneMobile = phoneMobile;
	}

	public String getFax() {
		return _fax;
	}

	public void setFax(String fax) {
		_fax = fax;
	}

	public String getEmailAddress() {
		return _emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		_emailAddress = emailAddress;
	}

	public String getIdentificationDoc() {
		return _identificationDoc;
	}

	public void setIdentificationDoc(String identificationDoc) {
		_identificationDoc = identificationDoc;
	}

	public String getIdentificationDocNo() {
		return _identificationDocNo;
	}

	public void setIdentificationDocNo(String identificationDocNo) {
		_identificationDocNo = identificationDocNo;
	}

	private String _applicationId;
	private String _userId;
	private String _designation;
	private String _title;
	private String _lastName;
	private String _firstName;
	private String _middleName;
	private String _phoneHome;
	private String _phoneOffice;
	private String _phoneMobile;
	private String _fax;
	private String _emailAddress;
	private String _identificationDoc;
	private String _identificationDocNo;
}